package com.heima.DIYMySpring;

import java.lang.reflect.InvocationTargetException;
import java.util.Map;

/**
 * @Author: Ethan Yankang
 * @Program: SpringBilibili
 * @Date: 2024-09-02 17:13
 **/
public class Main {
    public static void main(String[] args) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        MyAnnotationConfigApplicationContext myAnnotationConfigApplicationContext = new MyAnnotationConfigApplicationContext("com.heima.DIYMySpring");
        Map<String, Object> ioc = myAnnotationConfigApplicationContext.getIoc();
        System.out.println("容器里面的Bean：");
        ioc.forEach((k,v)-> System.out.println(k+"," +v));

    }

}
